/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-03-21 16:08:31
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-03-21 19:19:17
 * @FilePath: \react-jike\src\apis\article.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 文章相关的所有请求
import { request } from "@/utils";

// 获取文章列表
export const getArticleList = params => {
  return request.get('/mp/articles', {params});
}


// 删除文章
export const deleteArticle = params => {
  const { id } = params;
  return request.delete(`/mp/articles/${id}`);
}